package com.hqyj.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;


@Data
@TableName("hotel_menu")
public class Menu extends MyPage implements Serializable {
    //主键
    @TableId(value = "dish_id",type = IdType.AUTO)
    private Integer dishId;

    //TableField 非主键的注解 ，定义的属性和列名的映射关系
    @TableField(value = "department_id")
    private String departmentId;

    @TableField(value = "dish_name")
    private String dishName;

    @TableField(value = "dish_price")
    private String dishPrice;
}
